package com.sc.nft.dao;

import com.sc.nft.entity.UserInfo;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.UserReceiveInvite;
import com.sc.nft.mapper.UserReceiveInviteMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * (sc_user_receive_invite)数据DAO
 *
 * @author kancy
 * @since 2022-05-31 16:37:32
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class UserReceiveInviteDao extends ServiceImpl<UserReceiveInviteMapper, UserReceiveInvite> {

    @Resource
    private  UserReceiveInviteMapper userReceiveInviteMapper;
    /**
     * 查询用户已经完成的任务id
     * @param userId
     * @return
     */
    public List<Long> getListByUserId(Long userId) {
        return  userReceiveInviteMapper.findInviteTaskIdListByUserId(userId);
    }
}